package com.jkoss.biz.imp.jy;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.jkoss.biz.jy.JyrecodeBiz;
import com.jkoss.dao.jy.JiuyerecodeMapper;
import com.jkoss.pojo.jy.Jiuyerecode;
import com.jkoss.tool.Page;
@Component
public class JyrecodeImp implements JyrecodeBiz{
    
	@Autowired
	private JiuyerecodeMapper jydao;
		
	@Override
	public List<Jiuyerecode> listPageJyrecodes(Page<Jiuyerecode> page) {
		// TODO Auto-generated method stub
		return jydao.listPageJyrecodes(page);
	}

	@Override
	public Jiuyerecode findJyrecodeByID(Integer jysuccid) {
		// TODO Auto-generated method stub
		return jydao.findJyrecodeByID(jysuccid);
	}

	@Override
	public Object addJy(Jiuyerecode jy) {
		// TODO Auto-generated method stub
		return jydao.insert(jy)>0?"添加成功":"添加失败";
	}

	@Override
	public Object updtJy(Jiuyerecode jycode) {
		// TODO Auto-generated method stub
		return jydao.updateByPrimaryKey(jycode)>0?"修改成功":"修改失败";
	}

	@Override
	public Object deleteJyById(Integer jysuccid) {
		// TODO Auto-generated method stub
		return jydao.deleteByPrimaryKey(jysuccid)>0?"删除成功":"删除失败";
	}

}
